<template>
  <Card title="人数统计" v-bind="$attrs">
    <template #extra>
      <a-button type="link" size="small"/>
    </template>

    <CardGrid v-for="item in groupItems" :key="item.title" class="!md:w-1/3 !w-full">
      <span class="flex">
        <Icon :icon="item.icon" :color="item.color" size="30" />
        <span class="text-lg ml-4">{{ item.title }}</span>
        <span class="text-lg ml-4 text-secondary">
          <Tag color="success">{{ item.data }}人</Tag>
        </span>
      </span>
    </CardGrid>
  </Card>
</template>
<script lang="ts" setup>
  import { Card, CardGrid, Tag } from 'ant-design-vue';
  import Icon from '@/components/Icon/Icon.vue';
  import { groupItems } from './data';
</script>
